package com.ruoyi.ies.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.ies.mapper.OrientationMapper;
import com.ruoyi.ies.domain.Orientation;
import com.ruoyi.ies.service.IOrientationService;

/**
 * 定位打卡Service业务层处理
 *
 * @author July
 * @date 2023-06-08
 */
@Service
public class OrientationServiceImpl implements IOrientationService
{
    @Autowired
    private OrientationMapper orientationMapper;

    /**
     * 查询定位打卡
     *
     * @param id 定位打卡主键
     * @return 定位打卡
     */
    @Override
    public Orientation selectOrientationById(Long id)
    {
        return orientationMapper.selectOrientationById(id);
    }

    /**
     * 查询定位打卡列表
     *
     * @param orientation 定位打卡
     * @return 定位打卡
     */
    @Override
    public List<Orientation> selectOrientationList(Orientation orientation)
    {
        return orientationMapper.selectOrientationList(orientation);
    }

    /**
     * 新增定位打卡
     *
     * @param orientation 定位打卡
     * @return 结果
     */
    @Override
    public int insertOrientation(Orientation orientation)
    {
        return orientationMapper.insertOrientation(orientation);
    }

    /**
     * 修改定位打卡
     *
     * @param orientation 定位打卡
     * @return 结果
     */
    @Override
    public int updateOrientation(Orientation orientation)
    {
        return orientationMapper.updateOrientation(orientation);
    }

    /**
     * 批量删除定位打卡
     *
     * @param ids 需要删除的定位打卡主键
     * @return 结果
     */
    @Override
    public int deleteOrientationByIds(Long[] ids)
    {
        return orientationMapper.deleteOrientationByIds(ids);
    }

    /**
     * 删除定位打卡信息
     *
     * @param id 定位打卡主键
     * @return 结果
     */
    @Override
    public int deleteOrientationById(Long id)
    {
        return orientationMapper.deleteOrientationById(id);
    }
}
